package com.example.demo.bean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2020年08⽉16⽇<br/>
 * @version：v1.0.0<br>
 */
@Configuration
public class ApplicationConfig {

    /**
     * @Configuration可理解为用spring的时候xml里面的<beans>标签
     * @Bean可理解为用spring的时候xml里面的<bean>标签
     *
     * @return
     */
    @Bean(name = "entitlement")
    public Entitlement entitlement() {
        Entitlement ent = new Entitlement();
        ent.setName("Entitlement");
        ent.setTime(1);
        return ent;
    }
}
